-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace importlib_metadata with importlib.metadata on Python 3.8+ #223
Conversation
Yes this is a known bug in 3.8, which was fixed by pytest-dev/pytest#5523 but not yet released. Could you please change |
Yes this is a known bug in 3.8, which was fixed by pytest-dev/pytest#5523 but not yet released. Could you please change |
Thanks @hroncok! 👍 |
OK. The tox/travis configuration also probably needs some teaks:
|
Agreed, we should update the configuration after pytest 5.0 has been released. You want to do the tweaks yourself, or would you like me to do it? |
Do you mind me pushing it here? |
It is?! - but should be removed from allowed failures maybe? Apart from that makes sense to add it here. |
yep, crossed that out right after I've posted it. sorry for the confusion |
Not at all, but if possible make that in a separate commit. 👍 |
Not sure if appveyor has 3.8, we'll see. |
19b4766
to
3a4ea0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks @hroncok!
appveyor: ERROR: InterpreterNotFound: python3.8 |
No Python 3.8 on AppVeyor yet.
3a4ea0d
to
1bf30d6
Compare
Codecov Report
@@ Coverage Diff @@
## master #223 +/- ##
==========================================
+ Coverage 93.14% 93.88% +0.74%
==========================================
Files 14 9 -5
Lines 1678 1129 -549
Branches 116 21 -95
==========================================
- Hits 1563 1060 -503
+ Misses 98 66 -32
+ Partials 17 3 -14
Continue to review full report at Codecov.
|
Thanks @hroncok! Do you need a new release with this change? |
Thanks for help. No if it is not needed for pytest-dev/pytest#5537 |
from importlib import metadata | ||
else: | ||
import importlib_metadata as metadata | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondered if this could/should import/use it from src/pluggy/manager.py
?
=> #230
Fixes #222
Got
pytest: error: unrecognized arguments: -ra
with tox on 3.8 :(